package LeeJS;

public class J28_PrinterInterface {
	
	
	
	public static void main(String[] args) {
		
		
		HPPrinter h = new HPPrinter();
		h.speedPrint();
		HPPrinterDriver hh = new HPPrinterDriver();
		hh.print();
		
		CannonPrinter c = new CannonPrinter();
		c.hyperPrint();
		CannonPrinterDriver cc = new CannonPrinterDriver();
		cc.print();
		
		EpsonPrinter e = new EpsonPrinter();
		e.nanoPrint();
		EpsonPrinterDriver ee = new EpsonPrinterDriver();
		ee.print();
		
		
		PrintTable p = new HPPrinterDriver();
		p.print();
		p = new CannonPrinterDriver();
		p.print();
		p = new EpsonPrinterDriver();
		p.print();
		
		
	}

}


class HPPrinter{
	
	public void speedPrint(){
		
		System.out.println("빠른 출력속도!! 냐...?");
		
	}
	
}

class CannonPrinter{
	
	public void hyperPrint(){
		
		System.out.println("절대 속도에 도전!! 하냐....?");
		
	}
	
}

class EpsonPrinter{
	
	public void nanoPrint(){
		
		System.out.println("눈깜빡할 속도!! 냐....?");
		
	}
	
}

interface PrintTable{
	public final String a = "1";
	public void print();
	
}


class HPPrinterDriver implements PrintTable{
	
	@Override
	public void print(){
		
		System.out.println("빠른 출력속도!! 냐...?");
		
	}
	
	
}
class CannonPrinterDriver implements PrintTable{
	
	@Override
	public void print(){
		
		System.out.println("절대 속도에 도전!! 하냐....?");
		
	}
	
	
}
class EpsonPrinterDriver implements PrintTable{
	
	@Override
	public void print(){
		
		System.out.println("눈깜빡할 속도!! 냐....?");
		
	}
	
	
}